Skip to content

Conversation

@cscott
Copy link
Contributor

@cscott cscott commented Feb 3, 2016

This is a rebase/squash/slight improvement to PR #162.

This was referenced Feb 3, 2016
@frvge
Copy link
Contributor

frvge commented Feb 3, 2016

What are the slight improvements? Saves us doing a diff between your PR and #162. :)

@cscott
Copy link
Contributor Author

cscott commented Feb 3, 2016

Added some test cases, reworked how <dasharray> handled optional commas & improved its error messages.

@XhmikosR XhmikosR added this to the v0.2.6 milestone Feb 5, 2016
This allows concise description of complex ValidationTypes, using
syntax parallel to that in the official CSS specification.  This
patch just implements the mechanism; a follow-up patch uses it
to simplify existing ValidationTypes.
As a side-effect, we also pushed handling the `inherit` option out of
most ValidationTypes and moved it into the specification in the
Properties table.  I expect to refactor this further in the future to
make handling of inherit/initial/unset automatic and implicit.
I've updated several simple ValidationType functions to show how this
can be used to simplify common matchers.  It will also be used in a
follow-up patch to validate the `font-variant-alternates` property
which involves a large number of CSS function options.
Originally based on PR CSSLint#162 by Onno van der Zee <ovanderzee@iprofs.nl>.

Fixes: CSSLint#162
@cscott
Copy link
Contributor Author

cscott commented Feb 5, 2016

Rebased on top of PR #198 and PR #199, which lets the implementation be much simpler. It turns out it fixed some bogus test cases in the original patch as well. Simpler + more correct = win. But you'll want to wait until PR #198 and PR #199 are merged before merging this one.

XhmikosR added a commit that referenced this pull request Feb 6, 2016
Validate fill, stroke, and opacity properties.
@XhmikosR XhmikosR merged commit bc0d8fc into CSSLint:master Feb 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants